<%@ page import="quanlythuvien.PhieuXuatKho" %>



<div class="fieldcontain ${hasErrors(bean: phieuXuatKhoInstance, field: 'code', 'error')} required">
	<label for="code">
		<g:message code="phieuXuatKho.code.label" default="Code" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="code" maxlength="50" required="" value="${phieuXuatKhoInstance?.code}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: phieuXuatKhoInstance, field: 'maNhanVien', 'error')} required">
	<label for="maNhanVien">
		<g:message code="phieuXuatKho.maNhanVien.label" default="Ma Nhan Vien" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="maNhanVien" name="maNhanVien.id" from="${quanlythuvien.NhanVien.list()}" optionKey="id" required="" value="${phieuXuatKhoInstance?.maNhanVien?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: phieuXuatKhoInstance, field: 'ngayXuatKho', 'error')} required">
	<label for="ngayXuatKho">
		<g:message code="phieuXuatKho.ngayXuatKho.label" default="Ngay Xuat Kho" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="ngayXuatKho" precision="day"  value="${phieuXuatKhoInstance?.ngayXuatKho}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: phieuXuatKhoInstance, field: 'soLuong', 'error')} required">
	<label for="soLuong">
		<g:message code="phieuXuatKho.soLuong.label" default="So Luong" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="soLuong" required="" value="${phieuXuatKhoInstance.soLuong}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: phieuXuatKhoInstance, field: 'moTa', 'error')} ">
	<label for="moTa">
		<g:message code="phieuXuatKho.moTa.label" default="Mo Ta" />
		
	</label>
	<g:textArea name="moTa" cols="40" rows="5" maxlength="255" value="${phieuXuatKhoInstance?.moTa}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: phieuXuatKhoInstance, field: 'tinhTrang', 'error')} required">
	<label for="tinhTrang">
		<g:message code="phieuXuatKho.tinhTrang.label" default="Tinh Trang" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="tinhTrang" required="" value="${phieuXuatKhoInstance.tinhTrang}"/>
</div>

